How to enter criteria in a query to retrieve data.





Enter criteria in the 'Criteria' and/or 'or' rows of the query design grid in the Query Design view.

NOTE: For a record to be included in the data returned by the query when it is run, the record must meet the criteria specified in the 'Criteria' and/or 'or' rows in the query design grid.
< Design grid >

    1) If the Database window is not active, activate the Database window.
    2) If the query is not open, open the Query Design view.
    3) Click in the 'Criteria' row for the desired field in the design grid in the bottom half of the Query Design window.
    < Criteria row >
    4) Enter the desired criteria.
    NOTE 1: Select 'Build...' to have the expression builder help build an expression.
    NOTE 2: Enter a prompt in brackets for a parameter query.
    5) (Optional) To specify additional criteria for the same field:
    NOTE: For a record to be returned by the query, one of the criteria specified in the 'Criteria' and 'OR' rows must be met.

      a) Click in the 'or' row for the same field in the design grid.
      NOTE: 'Or' means that one or the other of the defined criteria must be true.
      < or row >

      b) Enter the desired criteria.
      NOTE 1: Select 'Build...' to have the expression builder help build an expression.
      NOTE 2: Enter a prompt in brackets for a parameter query.
      c) Repeat steps 5)a) and 5)b) in each 'or' row until the desired number of criteria have been entered for that field.

    6) Repeat steps 3) through 5) for each field in the query design grid for which to enter criteria.
    7) Select the 'File' menu and select 'Save' to save the query.
    8) Select the 'File' menu and select 'Close' to close the Query Design view.


Knowledge-Pak Desktop Suite (TM) Edition 5
Copyright (c) 1994-1997 by ServiceWare Inc. Subject to the terms set forth in the end-user license agreement. All rights reserved.



2nd Opinion copyright © 1997 by McAfee Associates.
Subject to the terms set forth in the end-user license agreement. All rights reserved.